package com.atguigu.gulimail.member.service;

import com.atguigu.common.utils.R;
import com.atguigu.common.vo.MemberResponseVo;
import com.atguigu.gulimail.member.vo.MemberLoginVo;
import com.atguigu.gulimail.member.vo.MemberRegistVo;
import com.atguigu.gulimail.member.vo.SocialUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author xujiale
 * @email 2519970360@qq.com
 * @date 2023-10-25 08:42:25
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R saveRegist(MemberRegistVo registVo);

    boolean chickEmailUnique(String email);
    boolean chickPhoneUnique(String phone);
    boolean chickUserNamenique(String userName);

    MemberEntity getByUserName(String userName);

    R login(MemberLoginVo loginVo);
    MemberEntity login(SocialUser socialUser);

}

